# -*- coding: utf-8 -*-
from sqlalchemy import Column, Integer, String, DateTime, func
import datetime

from utils.work_db import Base

"""
积分编码
"""


class PointCode(Base):
    __tablename__ = 'point_code'
    code_id = Column(Integer, primary_key=True, autoincrement=True)
    points_name = Column(String)
    points_code = Column(String)
    type = Column(Integer)
    status = Column(Integer)
    points = Column(Integer)
    points_remark = Column(String)
    create_time = Column(DateTime, default=func.now())
    update_time = Column(DateTime, default=func.now())
